package org.example.infrastructure.persistence.orm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.domain.model.entity.url.UrlShortenerCorrelationGroup;

@Mapper
public interface UrlShortenerCorrelationGroupMapper extends BaseMapper<UrlShortenerCorrelationGroup> {
    void deleteByFullShortUrlAndGid(@Param(value = "fullShortUrl") String fullShortUrl,
                                    @Param(value = "gid") String gid);

    void insertUrlShortenerCorrelationGroup(@Param(value = "fullShortUrl") String fullShortUrl,
                                            @Param(value = "gid") String gid);
}
